09. Use EditorActivity for Editing Pets Too
Use EditorActivity for Editing Pets Too
Question:
Start Quiz:
Solution:
Use EditorActivity for Editing Pets Too
Note: It’s expected that the editor won’t display the data from the database for that specific pet yet. That will come in a future step.
Hint #1: Set OnItemClickListener onto the ListView via setOnItemClickListener()method
Hint #2: To create specific pet content URI, use the Uri.withAppendedId() method
Hint #3: In the AndroidManifest.xml, you can delete the label attribute in the EditorActivity activity element because the activity title in the app bar is being overwritten programmatically in the Java code for both the new pet and existing pet cases.